<template>
	<view>
		<view class="head">
			<uni-icons type="redo" size="17px" style="color: #FCFCFC; float: right;margin-right: 12px;"></uni-icons>
			<uni-nav-bar dark :fixed="true" shadow background-color="#1F8AF3" color="#FCFCFC" status-bar left-icon="left" right-icon="redo" title="" @clickLeft="back" />
		</view>
		<view class="body">
			<view class="product">
				<image src="~@/static/pdf.png" mode="aspectFill" style="width: 100%;height: 248px;"></image>
				<view class="message">
					<text class="price">￥15</text>
					<text class="product-message">哈尔滨理工大学809-数据结构 专业课真题</text>
					<text class="time">发布：2019-12-25</text>
				</view>
				<view class="product-introduce">
					<text class="introduce">商品介绍</text>
					<hr class="line">
					<text class="introduce-tx">哈尔滨理工大学考研计算机专业课809-数据结构，欲购从速！！</text>
				</view>
				<view class="user">
					<hr class="line">
					<view class="userName">
						<image class="usertx" src="../../static/tx.png" mode="aspectFill"></image>
						<view class="user-message">
							<view class="xinxi">
								<text class="users">热心市民小天</text>
								<text class="userxx">90后  双子座  女生</text>
							</view>
							<view class="shop-message">
								<view class="shop-detail">
									<text>1</text>
									<text>在售</text>
								</view>
								<div class="shu-line"></div>
								<view class="shop-detail">
									<text>5</text>
									<text>累计成交</text>
								</view>
								<div class="shu-line"></div>
								<view class="shop-detail">
									<text>30天</text>
									<text>加入这里</text>
								</view>
							</view>
						</view>
					</view>
				</view>
				<view class="shop-tj">
					<text style="color: rgba(16, 16, 16, 1);
						font-size: 14px;
						text-align: left;"
						>推荐
					</text>
					<hr class="line">
					<view class="goods"
						v-for="(item,index) in dataList"
						:key="index"
					>
						<image :src="item.imgUrl" mode="aspectFit"></image>
						<view class="content">
							<text>{{item.name}}</text>
							<view class="content-message">
								<text class="price">￥{{item.price}}</text>
								<text class="ttime">{{item.ttime}}</text>
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>
		<view class="foot">
			<view class="fav">
				<uni-icons type="heart-filled" size="23px" color="red"></uni-icons>
				<text class="fav-txt">已收藏</text>
			</view>
			<button class="shop-btn" @click="shop">立即购买</button>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return {
				dataList:[
					{
						imgUrl:"/static/pdf.png",
						name:"哈尔滨理工大学809-计算机组成原理专业课真题",
						price:"39",
						ttime:"2019-12-25",
					},	
					{
						imgUrl:"/static/pdf.png",
						name:"哈尔滨理工大学809-计算机网络专业课真题",
						price:"25",
						ttime:"2019-12-25",
					}
				]
			}
		},
		methods:{
			back(){
				uni.navigateTo ({
					url:'/pages/index/details',
				})
			},
			shop(){
				uni.navigateTo({
					url:'/pages/index/order'
				})
			}
		}
	}
</script>

<style>
	/*body product*/
	/*商品信息*/
	.message{
		width: 100%;
		height: 99px;
		background-color: #E2EDF7;
		padding-left: 12px;
		display: flex;
		flex-direction: column;
		border-radius: 10px 10px 0px 0px;
	}
	.price{
		color: #ff0000;
		font-size: 18px;
		font-weight: 700;
	}
	.product-message{
		font-size: 14px;
		text-align: left;
		font-weight: 700;
	}
	.time{
		color: #888889;
		font-size: 12px;
		margin-top: 20px;
	}
	/*商品介绍*/
	.product-introduce{
		padding: 0 20px;
		margin-top: 16px;
		height: 264px;
	}
	.introduce{
		color: rgba(16, 16, 16, 1);
		font-size: 14px;
		text-align: left;
	}
	/*横线*/
	.line{
		margin: 4px 0 13px 0;
		color: #BBBBBB;
	}
	.introduce-tx{
		color: rgba(16, 16, 16, 1);
		font-size: 14px;
		text-align: left;
	}
	/*用户*/
	.user{
		height: 123px;
	}
	.userName{
		display: flex;
		padding-left: 20px;
		margin-top: 26px;
	}
	.usertx{
		border-radius: 25px 25px 25px 25px;
		width: 59px;
		height: 61px;
	}
	.user-message{
		display: flex;
		flex-direction: column;
	}
	.xinxi{
		display: flex;
		flex-direction: column;
	}
	.users{
		font-size: 14px;
		font-weight: 700;
		color: #101010;
		margin-left: 18px;
		
	}
	.userxx{
		color: rgba(136, 136, 137, 1);
		font-size: 12px;
		text-align: left;
		font-family: PingFangSC-regular;
		margin-left: 18px;
	}
	.shop-message{
		display: flex;
	}
	.shop-detail{
		display: flex;
		flex-direction: column;
		margin-left: 18px;
	}
	/* 竖线 */
	.shu-line{
	  float: left;
	  width: 0.1em;
	  height: 2.5em;
	  margin-right: 1em;
	  margin-left: 1.5em;
	  background:#888889;
	}
	/*推荐*/
	.shop-tj{
		margin-top: 15px;
		padding: 0 22px 0 20px;
		height: 326px;
	}
	.goods{
		display: flex;
		width: 100%;
		height: 120px;
		background: #fff;
		margin: 7px 0;
	}
	uni-image{
		width: 130px;
		height: 85px;
	}
	text{
		font-size: 14px;
		color: #101010;
		
	}
	.content{
		margin-top: 10px;
		margin-right: 46px;
		
	}
	.content-message{
		margin-top: 43px;
	}
	.ttime{
		color: #888889;
		font-size: 12px;
		margin-top: 20px;
		margin-left: 51px;
		
	}
	/*底部导航栏*/
	.foot{
		display: flex;
		position: fixed;
		bottom: 0;
		width: 100%;
		background-color: #ffffff;
	}
	.shop-btn{
		float: left;
		left: 33%;
		top: 1px;
		width: 89px;
		height: 36px;
		border-radius: 4px;
		background-color: rgba(237, 80, 33, 1);
		color: rgba(252, 252, 252, 1);
		font-size: 14px;
		text-align: center;
		
	}
	/*收藏小红心*/
	.fav{
		display: flex;
		flex-direction: column;
		position: relative;
		left: 63%;
	}
	.fav-txt{
		color: rgba(231, 15, 15, 1);
		font-size: 12px;
		text-align: left;
	}
</style>